package com.wanxi.test;

public class Student extends Worker {

    String address;
public static String aaa;
    public Student() {
//        super();
        System.out.println("子类");
    }

    public Student(String address) {
//        super();
//        super("a",1,"");
//        height=1;
        this.address = address;
        System.out.println("子类有参");
    }

    public void study() {
//        String address;
//        super.address;
//        this();
        System.out.println(this.address);
    }

    @Override//注解：判断当前方法和父类的方法是否是重写
    public String run(String aa) {
        System.out.println("百米冲刺");
        return "";
    }

    public String run() {
//        study(null);
        System.out.println("百米冲刺");
        return "";
    }
}
